
#ifndef _MEMBER_BGROUPBOX_H_
#define _MEMBER_BGROUPBOX_H_

#include <BMap>
#include <BFont>
#include <BGroupBox>
#include <BPointArray>

#include "ILineBlock.h"
#include "IAlignment.h"

namespace BWE
{
	class member_BGroupBox : public IAlignment
	{
	public:
		member_BGroupBox(BGroupBox* groupBox);
		~member_BGroupBox();

		void freshRects();

		BGroupBox*		boss;
		bool			titleVisible;
		BSize			titleIconSize;
		BMargin			titleMargin;
		int				titleSpace;
		int				titleSize;
		const BStyle*	titleStyle;
		bool			flat;
		bool			wired;
		BSize			iconSize;
		bool			checkable;
		bool			checked;
		bool			folded;
		float			wireSize;
		BUShort			wireStripe;
		bool			autoTop;
		bool			autoLeft;
		bool			autoRight;
		bool			autoBottom;

		bool			dirty;
		ILineBlock		block;
		BSize			centerSize;
		BPerch			backupPerch;
		BMargin			backupMargin;
		Policy			backupVPolicy;
		bool			pressed;
		bool			hovered;
		BRect			titleRect;
		BRect			headerRect;
		BPointfArray	wirePoints;
	};
}

#endif
